package com.cblz.bd.common.core.constant;

/**
 * {@code @Name:} RedisConstant
 * {@code @Description: } Redis缓存变量
 * {@code @Author:} by yanjieping
 * {@code @CreateDate:} 2022/11/9 - 周三
 */
public enum RedisConstant {
    CAPTCHA_PREFIX("ba-admin:captcha:", "验证码前缀"),
    MENU_PREFIX("ba-admin:system:cache:menu:", "菜单缓存前缀"),
    MENU_ALL_PREFIX("ba-admin:system:cache:menu:all", "菜单缓存前缀"),
    MENU_ID_CACHE_PREFIX("ba-admin:system:cache:menu:indexSearchParams:", "ID对应的菜单信息"),
    SECURITY_DATA_RECYCLE_PREFIX("ba-admin:system:cache:security:dataRecycle:", "数据安全回收缓存信息"),
    SYSTEM_CONFIG_CACHE_PREFIX("ba-admin:system:cache:config:", "系统配置缓存信息"),
    USER_RULE_GROUP_CACHE_PREFIX("ba-admin:system:cache:user:rule:group", "外部用户角色组缓存前缀");

    private final String value;
    private final String desc;

    RedisConstant(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
